import request from "@/utils/request";
import { method } from "lodash";

export function listData(query) {
  return request({
    url: `/gift/list`,
    method: "post",
    data: query
  });
}

export function listGiftWallData(query) {
  return request({
    url: `gift/frame/list${query}`,
    method: "get"
  });
}

export function saveData(form) {
  return request({
    url: "/gift/add",
    method: "post",
    data: form
  });
}

export function updateData(form) {
  return request({
    url: "/gift/save",
    method: "post",
    data: form
  });
}

export function deleteData(query) {
  return request({
    url: "/gift/del",
    method: "post",
    data: query
  });
}

export function upDowmData(query) {
  return request({
    url: "/gift/up_or_down",
    method: "post",
    data: query
  });
}

export function typeList() {
  return request({
    url: "/gift_type/list",
    method: "post"
  });
}
